package com.gs.cd.service.feign.sso.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

@Data
public class SSOResultUsers {

    @JsonProperty("errorCode")
    protected Integer errorCode;
    @JsonProperty("data")
    protected List<SSOUserInfoVo> data;
    @JsonProperty("message")
    protected String message;

    public boolean isSuccess() {
        return errorCode == 0 || "success".equals(message.toLowerCase());
    }

}
